package com.szeldon.declatest.declaration.scenario.parts;

import com.szeldon.utils.ValuesUtils;

/**
 * "DoScenarioStep" part of scenario.
 * 
 * @author szeldon
 * 
 */
public class DoScenarioStepPartDeclaration extends ScenarioPartDeclaration {

    private String stepId;

    /**
     * Creates "DoScenarioStep" part.
     * 
     * @param stepId
     *            ID of step.
     */
    public DoScenarioStepPartDeclaration(String stepId) {
        this.stepId = ValuesUtils.checkNamedValueForNull("stepId", stepId);
    }

    @Override
    public ScenarioPartsTypeEnum getPartType() {
        return ScenarioPartsTypeEnum.DO_SCENARIO_STEP_PART;
    }

    public String getStepId() {
        return stepId;
    }

    @Override
    public boolean isCondition() {
        return false;
    }

    @Override
    public String toString() {
        return "DoScenarioStep stepId=" + stepId + ";";
    }

}
